//
//  TabBarItemView.h
//  TabBarView
//
//  Created by HaiSheng on 15/8/8.
//  Copyright (c) 2015年 huanghaisheng. All rights reserved.
//

#import <UIKit/UIKit.h>

extern NSString *kTitle ;
extern NSString *kImgNormal ;
extern NSString *kImgHighlighted;
extern NSString *kNormalColor;
extern NSString *kHighlightedColor;

typedef NS_ENUM(NSInteger, TabItemStyle) {
    
    TabItemStyleTitle,
    TabItemStyleTitleAndIcon
};


@protocol TabBarItemViewDelegate;

@interface TabBarItemView : UIView

@property (nonatomic, strong) UIImageView *iconView;
@property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, strong) UIButton *button;
@property (nonatomic, strong) UIImage *highlightedImage;
@property (nonatomic, strong) UIImage *normalImage;
@property (nonatomic, strong) NSString *title;
@property (nonatomic, strong) UIColor *normalColor;
@property (nonatomic, strong) UIColor *highlightedColor;
@property (nonatomic, assign) id<TabBarItemViewDelegate> delegate;
@property (nonatomic, assign) TabItemStyle itemStyle;


- (id)initWithFrame:(CGRect)frame ItemInfo:(NSDictionary *)itemInfo Style:(TabItemStyle)style;

- (void)setNormalStatus;

- (void)setHighlightedStatus;

- (void)clickMe;


@end


@protocol TabBarItemViewDelegate <NSObject>

@optional
- (BOOL)shouldClickedTabBarItemView:(TabBarItemView *)view;
- (void)didClickedTabBarItemView:(TabBarItemView *)view;

@end

